package bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

@Entity
public class Customer {
	private int id;
	private String username;
	private String firstname;
	private String lastname;
	private String password;	
	private String addrLine1;
	private String addrLine2;
	private String city;
	private String state;
	private String phoneNum;
	private String zip;
	private long cash;
	
	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	
	@Column(nullable=false)
	public String getFirstname() {
		return firstname;
	}

	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}
	
	@Column(nullable=false)
	public String getLastname() {
		return lastname;
	}

	public void setLastname(String lastname) {
		this.lastname = lastname;
	}
	
	@Column(nullable=false)
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	
	@Column(nullable=false)
	public String getAddrLine1() {
		return addrLine1;
	}
	
	public void setAddrLine1(String addrLine1) {
		this.addrLine1 = addrLine1;
	}
	
	public String getAddrLine2() {
		return addrLine2;
	}
	
	public void setAddrLine2(String addrLine2) {
		this.addrLine2 = addrLine2;
	}
	
	@Column(nullable=false)
	public String getCity() {
		return city;
	}
	
	public void setCity(String city) {
		this.city = city;
	}
	
	@Column(nullable=false)
	public String getState() {
		return state;
	}
	
	public void setState(String state) {
		this.state = state;
	}
	
	@Column(nullable=false)
	public String getZip() {
		return zip;
	}
	
	public void setZip(String zip) {
		this.zip = zip;
	}
	
	public long getCash() {
		return cash;
	}
	
	@Column(nullable=false)
	public void setCash(long cash) {
		this.cash = cash;
	}

	@Column(unique=true, nullable=false)
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Column(nullable=false)
	public String getPhoneNum() {
		return phoneNum;
	}

	public void setPhoneNum(String phoneNum) {
		this.phoneNum = phoneNum;
	}

}
